package base;

import android.app.Application;
import android.util.Log;

import com.sdwfqin.cbt.CbtManager;
import com.tencent.bugly.crashreport.CrashReport;


/**
 * 搴旂敤Application绫�
 *
 * @author 椹厠鐨勮礉澹�
 * @data
 */

public class BaseApplication extends Application {

    private static BaseApplication mContext;

    //  
    public static BaseApplication getInstance() {
        return mContext;

    }

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;


        Log.e("8888", "啟動");


//        CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(this);
//        strategy.setAppChannel("myChannel");  //设置渠道
//        strategy.setAppVersion("1.0.1");      //App的版本
//        strategy.setAppPackageName("xm.chengdu.com.beijing_211");  //App的包名

//        CrashReport.initCrashReport(this, "cccf7b5617", false, strategy);
        CrashReport.initCrashReport(this, "cccf7b5617", false);
//        CrashReport.testJavaCrash();
    }


}
